home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form SimpleForm
- BorderStyle = 3 'Fixed Dialog
- Caption = "Send Message FROM Code"
- ClientHeight = 3705
- ClientLeft = 1230
- ClientTop = 1635
- ClientWidth = 6225
- Height = 4080
- Left = 1185
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3705
- ScaleWidth = 6225
- ShowInTaskbar = 0 'False
- Top = 1305
- Width = 6315
- Begin VB.CommandButton Command1
- Caption = "Send Message without UI Interface"
- Height = 495
- Left = 240
- TabIndex = 8
- Top = 2520
- Width = 5655
- End
- Begin VB.TextBox szNoteText
- Height = 375
- Left = 1920
- TabIndex = 7
- Top = 1800
- Width = 4095
- End
- Begin VB.TextBox szSubject
- Height = 375
- Left = 1920
- TabIndex = 6
- Top = 1320
- Width = 4095
- End
- Begin VB.TextBox szAddress
- Height = 375
- Left = 1920
- TabIndex = 3
- Top = 840
- Width = 4095
- End
- Begin VB.CommandButton Command2
- Caption = "Login cc:Mail"
- Height = 375
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 1335
- End
- Begin Mailx16Lib.MForm MForm1
- Left = 2310
- Top = 3270
- _version = 65541
- _extentx = 3651
- _extenty = 500
- _stockprops = 0
- mxformname = "FormTag1"
- End
- Begin Mailx16Lib.MSess MSess1
- Left = 360
- Top = 3120
- _version = 65541
- _extentx = 900
- _extenty = 900
- _stockprops = 0
- mail_type = 2
- End
- Begin Mailx16Lib.MMsg MMsg1
- Left = 1365
- Top = 3120
- _version = 65541
- _extentx = 900
- _extenty = 900
- _stockprops = 0
- markasread = 0 'False
- displaysenddialog= 0 'False
- bindstring = "MSess1"
- End
- Begin Mailx16Lib.MReci MReci1
- Left = 5040
- Top = 3120
- _version = 65541
- _extentx = 900
- _extenty = 900
- _stockprops = 0
- bindstring = "MMsg1"
- End
- Begin VB.Label Label4
- Caption = "Note Text"
- Height = 375
- Left = 240
- TabIndex = 5
- Top = 1920
- Width = 1455
- End
- Begin VB.Label Label3
- Caption = "Subject:"
- Height = 255
- Left = 240
- TabIndex = 4
- Top = 1320
- Width = 1455
- End
- Begin VB.Label Label2
- Caption = "Recipient Address:"
- Height = 255
- Left = 240
- TabIndex = 2
- Top = 840
- Width = 1575
- End
- Begin VB.Label Label1
- Caption = "This Examples SEND a ""background"" message from Your Code."
- Height = 375
- Left = 1680
- TabIndex = 1
- Top = 120
- Width = 4335
- End
- Attribute VB_Name = "SimpleForm"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- If MSess1.Logon = True Then
- MReci1.Clear
- MReci1.ResolveName = szAddress
- If MReci1.ResolveName = "" Then
- MsgBox "Recipient Address NOT Found"
- Else
- MReci1.Action = ACTION_ADDRECIPIENT
- MMsg1.Action = ACTION_NEW
- MMsg1.WorkingMsg = COMPOSE_MSG
- MReci1.Action = ACTION_RECIP_SET
- MMsg1.Subject = szSubject
- MMsg1.NoteText = szNoteText
- MMsg1.Action = ACTION_SENDMSG
- If MMsg1.ErrorNum = 0 Then
- MsgBox "Message has been sent"
- Else
- MsgBox "Error Sending The Mail message"
- End If
- End If
- Else
- MsgBox "No Active Session available"
- End If
- End Sub
- Private Sub Command2_Click()
- MSess1.Logon = True
- End Sub
-